package fr.louloutes.lolshooter.engine.sprites;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import fr.louloutes.lolshooter.R;

/**
 * Class SpriteBullet: handling bullet sprites.
 * 
 * @author Louloute
 * 
 */
public class SpriteBullet extends LolSprite
{
	static Bitmap bb = null;
	static int resId = R.drawable.bullet;

	/**
	 * Constructor with initializations.
	 * 
	 * @param res
	 */
	public SpriteBullet( Resources res )
	{
		// super( res, resId );
		if ( SpriteBullet.bb == null )
		{
			SpriteBullet.bb = BitmapFactory.decodeResource( res, resId );
		}
		b = bb;
		rect = new Rect( 0, 0, b.getWidth(), b.getHeight() );
		collisionRect = rect;

	}

}
